package c_LinkedList;

public class Test {

	public static void main(String[] args) {
		LinkedList<Integer> linkedList=new LinkedList<>();
		for(int i=0;i<6;i++) {
			linkedList.addIndex(0,i);
			System.out.println(linkedList);
		}	
		
		linkedList.addFirst(12);
		System.out.println(linkedList);
		
		linkedList.removeIndex(0);
		System.out.println(linkedList);
		
		int a;
		System.out.println(a=linkedList.removeIndex(4));
		System.out.println(linkedList);

    }
	

}
